package com.lxu.entity.player;

import com.lxu.entity.monster.Monster;
import com.lxu.entity.weapon.Weapon;

/**
 * 英雄
 */
public abstract class Player {
    /**
     * 编号
     */
    private String id;
    /**
     * 名称
     */
    private String name;
    /**
     * 武器
     */
    private Weapon weapon;

    /**
     * 类型
     */
    private String type;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Weapon getWeapon() {
        return weapon;
    }

    public void setWeapon(Weapon weapon) {
        this.weapon = weapon;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public abstract void attack(Weapon weapon, Monster monster);
}
